package org.example.courseservice.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;
import java.util.Set;

@Data
public class CourseDto {
    private Long id;
    
    @NotBlank(message = "Course title is required")
    private String title;
    
    private String description;
    
    @NotNull(message = "Course price is required")
    @Positive(message = "Price must be positive")
    private BigDecimal price;
    
    private Set<String> categories;
    private boolean published;
}